package com.mall.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.utils.PageUtils;
import com.mall.entity.AttrGroup;
import com.mall.vo.AttrGroupWithAttrsVo;
import com.mall.vo.AttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-08-30 18:03:59
 */
public interface AttrGroupService extends IService<AttrGroup> {
    IPage<AttrGroup> queryPage(Long catelogId, Map<String, String> map);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    void saveAllAttr(String groupName, Long id, AttrsVo[] attrsVos);

//    PageUtils queryPage(Map<String, Object> params);
}

